Folder Structure

This page provides an overview of the project structure of a Catalyst app.


Top-Level Folders

FolderPurpose
configConfiguration keys (environment variables for server and client)
srcApplication source code
clientClient app entry point
serverServer code (middlewares, controllers, APIs)
publicStatic assets served as-is (favicons, manifests, offline.html)
buildBundled output (generated after build)

In Catalyst 0.3.x, build/client contains browser assets and build/server contains the Vite SSR renderer. Legacy 0.2.x applications use the webpack-era output layout documented in their deployment configuration.


Configuration Files

FilePurpose
config/config.jsonEnvironment variables for server and client
src/js/routes/index.jsRoute definitions
src/js/store/index.jsRedux store configuration (optional)
client/index.jsClient app entry point
server/document.jsHTML document template
server/index.jsServer lifecycle hooks
server/server.jsExpress middlewares

Static Assets

DirectoryPurpose
src/static/cssGlobal stylesheets
src/static/fontsFont files
public/Static files served at root path